﻿using KinonekoSoftware.CodariaDB.Documents.Keywords;

namespace KinonekoSoftware.CodariaDB.Runtimes.Categories
{
    public sealed class KeywordCatalogRoot : EmbeddedObject
    {
        public required List<KeywordCatalog> KeywordCatalogs { get; init; }

        /// <summary>
        /// 由 设定编辑器 确定是否重复。
        /// </summary>
        public required List<Keyword> KeywordLists { get; init; }

        public static KeywordCatalogRoot Create()
        {
            return new KeywordCatalogRoot
            {
                KeywordCatalogs = new List<KeywordCatalog>(32),
                KeywordLists    = new List<Keyword>(32),
            };
        }
    }
}